package com.tql.mall.boss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tql.mall.model.product.BaseCategory2;

import java.util.List;

public interface CategoryTwoService extends IService<BaseCategory2> {
    String saveLevelTwo(BaseCategory2 baseCategory2);

    boolean isExist(Long category2Id);

    String deleteById(Long id);

    boolean isExistRely(Long id);



//    List<BaseLevel> getBaseLevelList(Long id);

    String updateCategory(Long id, String newName, Long selectedCategory1Id);

    List<BaseCategory2> getCategoryListWithSameParent(Long id);

    List<BaseCategory2> getCategoryListWithSameCategory1Id(Long id);
}
